package com.yc.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.yc.framework.baseClass.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 购物车/收藏
 * </p>
 *
 * @author 1850140986@qq.com
 * @since 2022-12-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName("t_book_cart_like")

public class BookCartLike extends BaseEntity<BookCartLike>{
    private static final long serialVersionUID = 1L;

    /**
     * 购物车商品id
     */
    @TableId(value = "cl_id", type = IdType.AUTO)
    private Integer clId;

    /**
     * 书籍ID
     */
    @TableField("book_id")
    private Integer bookId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 购物车数量
     */
    @TableField("cart_num")
    private Integer cartNum;

    /**
     * 收藏1或购物车2都有3
     */
    @TableField("cl_status")
    private Integer clStatus;



}